package com.kaili.basic.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.basic.pojo.entity.BaseCustomer;
import com.kaili.basic.pojo.entity.BaseCustomerExport;
import com.kaili.basic.pojo.entity.QueryCustomerVO;


import java.util.List;
import java.util.Map;

/**
 * Created by zengshuai on 18-4-25.
 */
public interface BaseCustomerService {

    //添加客户
    int addCustomer(BaseCustomer customer);

    //删除客户
    int deleteCustomer(BaseCustomer customer);

    //修改客户
    int updateCustomer(BaseCustomer customer);


    //条件查询获取客户详细信息
    Page<QueryCustomerVO> queryCustomerDetails(Page<QueryCustomerVO> page,QueryCustomerVO queryCustomerVO);

    //查询当前数据库中的最大ID
    Long getMaxCustomerId();

    String getMaxCustomerCode();

    //根据联系人或公司名称模糊查询
    List<BaseCustomer> queryCustomer(BaseCustomer customer);

    //根据客户编号和姓名拼音模糊查询
    List<BaseCustomer> queryCustomerCode(String str);

    BaseCustomer getCustomerId(BaseCustomer customer);

    List<BaseCustomerExport> queryCustomerExport(Map<String, Object> map);

    List<BaseCustomer> selectCustomer(BaseCustomer customer);
}
